package com.zz.parkingsystem.entity;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 未支付申诉表
 * @TableName t_appeal_unpaid
 */
@Data
public class AppealUnpaid implements Serializable {
    /**
     * 未支付申诉表编号
     */
    private Integer auId;

    /**
     * 订单项id
     */
    private Integer oiId;

    /**
     * 申诉内容
     */
    private String auContent;

    /**
     * 申诉图片
     */
    private String auImg;

    /**
     * 申诉时间
     */
    private Date auTime;

    /**
     * 申诉状态 0：待处理，1：通过----修改了金额，2：不通过
     */
    private Integer auStatus;

    /**
     * 预留varchar字段
     */
    private String reservedVar;

    /**
     * 预留int字段
     */
    private Integer reservedInt;

    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        AppealUnpaid other = (AppealUnpaid) that;
        return (this.getAuId() == null ? other.getAuId() == null : this.getAuId().equals(other.getAuId()))
            && (this.getOiId() == null ? other.getOiId() == null : this.getOiId().equals(other.getOiId()))
            && (this.getAuContent() == null ? other.getAuContent() == null : this.getAuContent().equals(other.getAuContent()))
            && (this.getAuImg() == null ? other.getAuImg() == null : this.getAuImg().equals(other.getAuImg()))
            && (this.getAuTime() == null ? other.getAuTime() == null : this.getAuTime().equals(other.getAuTime()))
            && (this.getAuStatus() == null ? other.getAuStatus() == null : this.getAuStatus().equals(other.getAuStatus()))
            && (this.getReservedVar() == null ? other.getReservedVar() == null : this.getReservedVar().equals(other.getReservedVar()))
            && (this.getReservedInt() == null ? other.getReservedInt() == null : this.getReservedInt().equals(other.getReservedInt()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getAuId() == null) ? 0 : getAuId().hashCode());
        result = prime * result + ((getOiId() == null) ? 0 : getOiId().hashCode());
        result = prime * result + ((getAuContent() == null) ? 0 : getAuContent().hashCode());
        result = prime * result + ((getAuImg() == null) ? 0 : getAuImg().hashCode());
        result = prime * result + ((getAuTime() == null) ? 0 : getAuTime().hashCode());
        result = prime * result + ((getAuStatus() == null) ? 0 : getAuStatus().hashCode());
        result = prime * result + ((getReservedVar() == null) ? 0 : getReservedVar().hashCode());
        result = prime * result + ((getReservedInt() == null) ? 0 : getReservedInt().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", auId=").append(auId);
        sb.append(", oiId=").append(oiId);
        sb.append(", auContent=").append(auContent);
        sb.append(", auImg=").append(auImg);
        sb.append(", auTime=").append(auTime);
        sb.append(", auStatus=").append(auStatus);
        sb.append(", reservedVar=").append(reservedVar);
        sb.append(", reservedInt=").append(reservedInt);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}